//
//  RootViewController.h
//  iPhone SRV
//
//  Created by Nick Kitchener on 06/07/2009.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "SRVConnectionStateChangeListener.h"
#import "SRVOperationCompleteListener.h"
#import "SRVGetVersionOperation.h"

@class ConnectionViewController;
@class MenuViewController;
@class ImmediateViewController;
@class MappedViewController;
@class SRVController;

@interface RootViewController : UIViewController <SRVConnectionStateChangeListener, SRVOperationCompleteListener> {
	ConnectionViewController	*connectionViewController;
	ImmediateViewController		*immediateViewController;
	MappedViewController		*mappedViewController;
//	MenuViewController			*menuViewController;
	
	SRVController *srv;
	
	NSString	*prefIPAddress;
	NSInteger	prefPortNumberUART0;
	NSInteger	prefPortNumberUART1;
}

@property (nonatomic, retain) ConnectionViewController *connectionViewController;
@property (nonatomic, retain) ImmediateViewController *immediateViewController;
@property (nonatomic, retain) MappedViewController *mappedViewController;
//@property (nonatomic, retain) MenuViewController *menuViewController;
@property (nonatomic, retain) SRVController *srv;

-(void)loadApplicationPreferences;

-(void)startProbe;
-(void)showMenu;
-(void)showImmediate;

- (void)viewWillAppear:(BOOL)animated;
- (void)viewWillDisappear:(BOOL)animated;

@end
